<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="WebMVC.Models" %>
<asp:Content ID="meta" ContentPlaceHolderID="HeadContent" runat="server">
	<meta name="keywords" content="<%=ViewResources.MetaStrings.ProductPageMetaKeywords %>"/>
	<meta name="description" content="<%=ViewResources.MetaStrings.ProductPageMetaDescription %>" />
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"><%= ViewResources.MetaStrings.ProductPageTitle %></asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="product-list">
    <div id="product-top-panel">
        <div id="product-type-panel">
            <h2 class="product-name">
                <%= DataRes.StaticStrings.ResourceManager.
                    GetString("product_type_" + 
                    Url.RequestContext.RouteData.Values["type"].ToString()) %>
            </h2>
        </div>
        <div id="color-tags-panel">
            <div>
                <h4><%=ViewResources.ProductStrings.ColorHeader %></h4>
                <div>
                    <% Html.RenderAction("ColorListViewControl", "StaticData"); %>
                </div>
            </div>
            <div>
                <h4><%=ViewResources.ProductStrings.TagHeader %></h4>
                <div>
                    <% Html.RenderAction("ColorListViewControl", "StaticData"); %>
                </div>
            </div>
        </div>
    
    </div>
    
    <div id="product-main-panel">
        <div id="category-panel">
            <h4><%= ViewResources.ProductStrings.StyleHeader%></h4>
            <% Html.RenderAction("StyleMenuViewControl", "StaticData"); %>
            <h4><%= ViewResources.ProductStrings.IndustryHeader%></h4>
            <% Html.RenderAction("IndustryMenuViewControl", "StaticData"); %>
        </div>    
        <div id="product-list-panel">
            <div id="paging-header">
                <div class="paging-list">
                    <% Html.RenderPartial("NoPagesPagingControl", ViewData["pages"] as WebMVC.Models.PagingViewModel); %>
                </div>
            </div>
            <div id="product-list-box">
                <% foreach (ProductViewModel product in (List<ProductViewModel>)ViewData["products"])
                {%>
                <% Html.RenderPartial("ProductListItem", product); %>    
                <%} %>
            </div>
            <div id="paging-footer">
                <div class="paging-list">
                    <% Html.RenderPartial("PagingControl", ViewData["pages"] as WebMVC.Models.PagingViewModel); %>
                </div>
            </div>
        </div>
    </div>
</div>        
</asp:Content>
